package com.forezp.dao;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import com.service.bean.Device;

@Mapper
@Repository
public interface DeviceMapper {
	
	//上线
	public int insertDevice(Device device);
	
	//更改
	public Integer updateById(Device device);
	
	 /***列表*/
	List<Device> getList(Device device);
	
	//通过设备序列号查找
	public Device getDeviceBySerialNumber(String serialNumber);
	
	//批量注册
	public void deviceRegisters(@Param(value = "typeId")Integer typeId,@Param(value = "ids") Integer[] ids);


}
